package com.xysoft.admin.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.xysoft.admin.service.ActionService;

@Controller
@RequestMapping(value = "/admin/action.jspx")
public class ActionController {
	private ActionService actionService;
	
	@RequestMapping(params = "index")
	public String get(HttpServletResponse response, HttpServletRequest request) throws IOException {
		String res = this.actionService.get(request);
		response.getWriter().print(res);
		return null;
	}
	
	@Autowired
	public void setActionService(ActionService actionService) {
		this.actionService = actionService;
	}
}
